package com.nanjia.boot.product.spec.value.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 规格值表单对象
 *
 * @author 周洋
 * @since 2025-07-09 17:16
 */
@Getter
@Setter
@Schema(description = "规格值表单对象")
public class SpecValueForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "所属规格组ID")
    @NotNull(message = "所属规格组ID不能为空")
    private Long specGroupId;

    @Schema(description = "规格值名称(如:红色/S码)")
    @NotBlank(message = "规格值名称(如:红色/S码)不能为空")
    @Size(max=50, message="规格值名称(如:红色/S码)长度不能超过50个字符")
    private String valueName;


}
